package com.quectel.core.module.partybuilding.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 *
 * @author bob
 * @email bob.yu@quectel.com
 * @date 2023/05/24 11:38
 */
@Data
@Schema
public class PartyBuildingHelpRecordDto implements Serializable {

    /**
    * id
    */
    @Schema(description = "id")
    private Long id;

    /**
    * 租户id
    */
    @Schema(description = "租户id")
    private Long tenantId;

    /**
    * 党组织id
    */
    @Schema(description = "党组织id")
    private Long partyId;

    /**
    * 帮扶主题
    */
    @Schema(description = "帮扶主题")
    private String subject;

    /**
    * 帮扶类型 字典值
    */
    @Schema(description = "帮扶类型 字典值")
    private Byte type;

    /**
    * 帮扶日期
    */
    @Schema(description = "帮扶日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date date;


    /**
    * 帮扶对象
    */
    @Schema(description = "帮扶对象")
    private String helper;

    /**
    * 帮扶方式
    */
    @Schema(description = "帮扶方式")
    private String method;

    /**
    * 帮扶金额
    */
    @Schema(description = "帮扶金额")
    private BigDecimal amount;

    /**
    * 附件
    */
    @Schema(description = "附件")
    private String extFiles;

    /**
    * 帮扶内容
    */
    @Schema(description = "帮扶内容")
    private String remark;

    /**
    * 创建人
    */
    @Schema(description = "创建人")
    private String creator;

    /**
    * 创建时间
    */
    @Schema(description = "创建时间")
    private Date createTime;

    /**
    * 修改人
    */
    @Schema(description = "修改人")
    private String editor;

    /**
    * 修改时间
    */
    @Schema(description = "修改时间")
    private Date editTime;

    /************非数据库字段 start ************/
    @Schema(description = "党组织名称")
    private String partyName;

    @Schema(description = "绑定关系")
    private List<PartyBuildingHelpRecordPersonBindingDto> bindPerson;

    @Schema(description = "参与人员;列表")
    private List<PartyPersonResp> personList;
    /************非数据库字段 end **************/
}
